/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package BackEnd;

/**
 *
 * @author ign
 */
public class Country {
    private int id;
    private String name;
    private String code;

    public Country(int id, String name, String code) {
        this.id=id;
        this.name=name;
        this.code=code;
    }

    public int getId(){
        return id;
    }

    public String getName() {
        return name;
    }

    public String getCode(){
        return code;
    }

    public int hashCode() {
       return name.hashCode()+code.hashCode();
    }
}
